import React from "react"

const Main =React.lazy(()=>import ("../pages/Main"))
const List =React.lazy(()=>import ("../pages/List"))
const Search =React.lazy(()=>import ("../pages/Search"))
const Detail =React.lazy(()=>import("../pages/Detail"))
const Login =React.lazy(()=>import("../pages/Login"))

const routes=[{
    path:'/main',
    element:<Main/>
},{
    path:'/detail',
    element:<Detail/>
},{
    path:'/list',
    element:<List/>
},{
    path:'/search',
    element:<Search/>
},{
    path:'/login',
    element:<Login/>
},{
    from:'/',
    to:'/main'
}]

export default routes